#!/bin/bash



if [ ! -d backup/bot ];then
  mkdir -p backup/bot
fi

if [ -f backup/bot/config.json ];then
   rm backup/bot/config.json
fi

if [ -f bot/config.json ];then
   cp bot/config.json backup/bot/config.json
fi

rm -rf qq
if ! git clone https://github.com/Mrs4s/go-cqhttp.git qq;then
exit 1
fi
